import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home/Home.vue'
import Login from '../views/Login/Login.vue'
import 'reset-css'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home,
	children:[
		{
			path:'/AccountManerge',
			name:"用户管理",
			component: () => import(/* webpackChunkName: "AccountManerge" */ '../views/SystemManerge/AccountManerge/AccountManerge')
		},
		{
			path:'/PermissionManerge',
			name:"权限管理",
			component: () => import(/* webpackChunkName: "PermissionManerge" */ '../views/SystemManerge/PermissionManerge/PermissionManerge')
		},
		{
			path:'/RoleManerge',
			name:"角色管理",
			component: () => import(/* webpackChunkName: "RoleManerge" */ '../views/SystemManerge/RoleManerge/RoleManerge')
		}
	]
  },
  {
	path:'/Login',
	name:'Login',
	component:Login
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
